﻿<UserControl x:Class="EzDesk.DesktopClient.View.FeedView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
            xmlns:converter="clr-namespace:EzDesk.Generic.WPF.Converter;assembly=EzDesk.Generic.WPF"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition  Height="auto"></RowDefinition>
            <RowDefinition  Height="auto"></RowDefinition>
            <RowDefinition  Height="auto"></RowDefinition>
            <RowDefinition  Height="*"></RowDefinition>
        </Grid.RowDefinitions>

        <Border Grid.Row="0"   Style="{StaticResource LabelBorder}"  >
            <Grid>
                <TextBlock Margin="5,0,0,0" Text="{StaticResource Notification}" HorizontalAlignment="Left" />
                <TextBlock Margin="0,0,5,0"  HorizontalAlignment="Right">
                    <Run Text="3"></Run>/<Run Text="10"></Run>
                </TextBlock>
            </Grid>
        </Border>
        <ListBox  Grid.Row="1" ItemsSource="{Binding NotificationFeeds}" ItemContainerStyle="{StaticResource NonSelectedStyleListBoxItem}" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <ContentControl  Content="{Binding View}"></ContentControl>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Border Grid.Row="2"  Style="{StaticResource LabelBorder}" >
            <Grid>
                <TextBlock Margin="5,0,0,0" Text="{StaticResource UpdateMessage}"/>
                <TextBlock Margin="0,0,5,0"  HorizontalAlignment="Right">
                    <Run Text="10"></Run>/<Run Text="256"></Run>
                </TextBlock>
            </Grid>
        </Border>
        <ScrollViewer Grid.Row="3">
            <ListBox   ItemsSource="{Binding UpdateFeeds}"  ItemContainerStyle="{StaticResource NonSelectedStyleListBoxItem}" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <ContentControl Content="{Binding View}"></ContentControl>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </ScrollViewer>
    </Grid>
</UserControl>
